package org.shop.dao;

import java.util.List;
import java.util.Map;

import org.shop.dao.base.BaseDaoMapper;
import org.shop.entity.Question;

public interface QuestionMapper extends BaseDaoMapper<Question, Long>{
	/**
	 * app获取问答列表
	 * @param params
	 * @return
	 */
	public List<Map<String, Object>> getQuestionList(Map<String, Object> params);
	
	/**
	 * app获取问答详情
	 * @param params
	 * @return
	 */
	public Map<String, Object> getQuestionDetails(Map<String, Object> params);
	
	/**
	 * 管理端获取问答列表信息
	 * @param paramMap
	 * @return
	 */
	public List<Map<String,Object>> getQuestionInfoList(Map<String,Object> paramMap);
	
	/**
	 * 管理员获取问答列表条数
	 * @param paramMap
	 * @return
	 */
	public int getQuestionInfoCount(Map<String,Object> paramMap);
}